package com.sanqing.po;

import java.util.Set;



/**
 * Position entity. @author MyEclipse Persistence Tools
 */

public class Position  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private Department department;
     private String name;
     private String purpose;
     private String content;
     private String duty;
     //private Integer superiorId;
     private Position superior; 
     private Set inferiors;
     private Set employees;
     private short plannum;
     private short occunum;


    // Constructors

    /** default constructor */
    public Position() {
    }

    
    /** full constructor */
    public Position(Department department, String name, String purpose, String content, String duty,
    		/*Integer superiorId,*/ Position superior, Set inferiors, Set employees, short plannum, short occunum) {
        this.department = department;
        this.name = name;
        this.purpose = purpose;
        this.content = content;
        this.duty = duty;
        //this.superiorId = superiorId;
        this.superior = superior;
        this.inferiors = inferiors;
        this.employees = employees;
        this.plannum = plannum;
        this.occunum = occunum;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public Department getDepartment() {
        return this.department;
    }
    
    public void setDepartment(Department department) {
        this.department = department;
    }

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

    public String getPurpose() {
        return this.purpose;
    }
    
    public void setPurpose(String purpose) {
        this.purpose = purpose;
    }

    public String getContent() {
        return this.content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }

    public String getDuty() {
        return this.duty;
    }
    
    public void setDuty(String duty) {
        this.duty = duty;
    }

    /*public Integer getSuperiorId() {
        return this.superiorId;
    }
    
    public void setSuperiorId(Integer superiorId) {
        this.superiorId = superiorId;
    }*/
    
    public Position getSuperior(){
    	return this.superior;
    }
    
    public void setSuperior(Position superior){
    	this.superior = superior;
    }
    
    public Set getInferiors(){
    	return this.inferiors;
    }
    
    public void setInferiors(Set inferiors){
    	this.inferiors = inferiors;
    }
    
    public Set getEmployees(){
    	return this.employees;
    }
    
    public void setEmployees(Set employees){
    	this.employees = employees;
    }

    public short getPlannum() {
        return this.plannum;
    }
    
    public void setPlannum(short plannum) {
        this.plannum = plannum;
    }

    public short getOccunum() {
        return this.occunum;
    }
    
    public void setOccunum(short occunum) {
        this.occunum = occunum;
    }
   








}